import { ApiCall } from "tsrpc";
import { ReqJoin, ResJoin } from "../../../tsrpc/shared/protocols/hall/PtlJoin";
import { hs } from "../../../HallServiceEntra";

export default async function (call: ApiCall<ReqJoin, ResJoin>) {
    if (!call.req.__ssoToken) {
        call.error("sso无效", {code:"SSO_INVAILD"})
        return;
    }
    // TODO
    hs.HallModel.ssoArr.push(call.req.__ssoToken);
    call.succ({});
}